import { v4 as uuidv4 } from "uuid";

export const getId = () => {
  let iidd = localStorage.getItem("user-id");
  if (!iidd) {
    iidd = uuidv4();
    localStorage.setItem("user-id", iidd);
  }
  return iidd;
};
